package com.ad_hccm.service.impl.TreatmentHistory;

import com.ad_hccm.dao.TreatmentHistory.TopicalMedicineDao;
import com.ad_hccm.domain.TreatmentHistory.TopicalMedicine;
import com.ad_hccm.service.TreatmentHistory.TopicalMedicineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO 外用药物ServiceImpl
 */
@Service
public class TopicalMedicineServiceImpl implements TopicalMedicineService {
    @Autowired
    private TopicalMedicineDao topicalMedicineDao;

    @Override
    public boolean save(TopicalMedicine topicalMedicine) {
        return topicalMedicineDao.save(topicalMedicine);
    }

    @Override
    public boolean update(TopicalMedicine topicalMedicine) {
        return topicalMedicineDao.update(topicalMedicine);
    }

    @Override
    public TopicalMedicine getById(String id) {
        return topicalMedicineDao.getById(id);
    }

    @Override
    public List<TopicalMedicine> getAll() {
        return topicalMedicineDao.getAll();
    }
}
